import App from './App'
import vue from 'App.vue'
import request from "@/utils/request.js"
import reqConfig from "@/config/request.js"
import appConfig from "@/config/app.js"
import uView from '@/uni_modules/uview-ui'
import share from '@/utils/share.js'
import service from '@/utils/service.js'
import commUtil from "@/utils/common.js";

Vue.use(uView)
Vue.prototype.$reqConfig = reqConfig
Vue.prototype.$appConfig = appConfig
Vue.prototype.$axios = request.http
Vue.prototype.$comm = commUtil
Vue.mixin(share)
Vue.use(service)

// #ifndef VUE3
import Vue from 'vue'

Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif